using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public abstract class ChangeClassificationTransaction:ChangeEmployeeTransaction
    {
        public ChangeClassificationTransaction(int empid)
            :base(empid)
        {
        }

        public override void Change(Employee e)
        {
            PaymentClassification pc = GetClassification();
            e.SetClassification(pc);

            PaymentSchedule ps = GetSchedule();
            e.SetSchedule(ps);
        }

        public abstract PaymentClassification GetClassification();
        public abstract PaymentSchedule GetSchedule();
        
    }
}
